package com.evil.application.pojo.dto.template;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

@Data
public class UploadTemplateReqDTO {

    private Integer type;

    @NotNull(message = "文件不能为空")
    private MultipartFile file;

    private Long userId;

    private Long enterpriseId;

    /**
     * 允许文件大小
     */
    private Long allowMaxSize;
    /**
     * 允许文件类型
     */
    private String allowContentType;

    /**
     * 应用key
     */
    @NotBlank(message = "应用key不能为空")
    private String applicationKey;

    /**
     * 打印模板类型
     */
    @NotNull(message = "模板类型不能为空")
    private Integer templateType;
}
